from enum import Enum


class Color(Enum):
    RED = 1
    BLACK = 2
    WHITE = 3


print(Color.RED)
print(Color['RED'])
print(Color(2))
print(Color(3))
print(Color.WHITE.name)
print(Color.WHITE.value)

for cl in Color:
    print(cl)